package org.price.sql.repo.session.core;

import java.util.Map;

import org.price.sql.repo.document.model.PropertyInfo;
import org.price.sql.repo.documents.config.Index;
import org.price.sql.repo.documents.config.Unique;

@SuppressWarnings("unchecked")
public class DocumentInfo {
    private String type;

    private PropertyInfo[] properties;

    private Map<String, PropertyInfo[]> inheritedProperties;

    private Unique[] uniques;

    private Index[] indexes;

    private String normalizedName;

    public DocumentInfo() {

    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setProperties(PropertyInfo[] properties) {
        this.properties = properties;
    }

    public PropertyInfo[] getProperties() {
        return properties;
    }

    public void setInheritedProperties(
            Map<String, PropertyInfo[]> inheritedProperties) {
        this.inheritedProperties = inheritedProperties;
    }

    public Map<String, PropertyInfo[]> getInheritedProperties() {
        return inheritedProperties;
    }

    public void setUniques(Unique[] uniques) {
        this.uniques = uniques;
    }

    public Unique[] getUniques() {
        return uniques;
    }

    public void setIndexes(Index[] indexes) {
        this.indexes = indexes;
    }

    public Index[] getIndexes() {
        return indexes;
    }

    public void setNormalizedName(String normalizedName) {
        this.normalizedName = normalizedName;
    }

    public String getNormalizedName() {
        return normalizedName;
    }

}
